package com.wy.powerbuilder.service.impl.Costs;

import com.wy.powerbuilder.entity.Costs.Cost;
import com.wy.powerbuilder.entity.lwg.houses;
import com.wy.powerbuilder.mapper.Costs.CostMapper;
import com.wy.powerbuilder.service.Costs.CostService;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CostServiceImpl implements CostService {

    @Autowired
    private CostMapper costMapper;
    @Autowired
    private SqlSessionTemplate sqlSessionTemplate;

   /* @Override
    public int addCost(Cost cost) {
        return costMapper.addCost(cost);
    }*/



    public List<houses> selHouses(houses houses) {
        return costMapper.selHouses(houses);
    }

    @Override
    public Cost selCost(Integer c_id) {
        return  costMapper.selCost(c_id);
    }


    @Override
    public int addCost(Cost cost) {
        return costMapper.addCost(cost);
    }

    @Override
    public List<Cost> selHCost(Integer h_id) {
        return costMapper.selHCost(h_id);
    }


}
